package com.suse.service.view.edu.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 课程分类
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-08-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CourseVo", description="课程视图对象")
public class CourseDetailVo {

    @ApiModelProperty(value = "课程ID")
    private String id;

    @ApiModelProperty(value = "讲师ID")
    private String teacherId;

    @ApiModelProperty(value = "讲师姓名")
    private String teacherName;

    @ApiModelProperty(value = "课程标题")
    private String title;

    @ApiModelProperty(value = "课程销售价格，设置为0则可免费观看")
    private BigDecimal price;

    @ApiModelProperty(value = "课程总课时")
    private Integer lessonNum;

    @ApiModelProperty(value = "课程封面图片路径")
    private String cover;

    @ApiModelProperty(value = "销售数量")
    private Long buyCount;

    @ApiModelProperty(value = "浏览数量")
    private Long viewCount;

    @ApiModelProperty(value = "课程简介")
    private String description;

    @ApiModelProperty(value = "简介")
    private String intro;
    
    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "一级课程分类ID")
    private String firstSubjectId;

    @ApiModelProperty(value = "二级课程分类ID")
    private String secondSubjectId;

    @ApiModelProperty(value = "一级课程分类名称")
    private String firstSubjectTitle;

    @ApiModelProperty(value = "二级课程分类名称")
    private String secondSubjectTitle;

    @ApiModelProperty(value = "课程章节列表")
    private List<ChapterVo> chapterList;

}
